// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

import ViewUI from 'view-design';
import 'view-design/dist/styles/iview.css';
Vue.use(ViewUI);

import Video from 'video.js'
import 'video.js/dist/video-js.css'

import axios from 'axios'
import cookie from 'js-cookie'

Vue.prototype.$video = Video
Vue.prototype.$axios=axios
Vue.prototype.$cookie=cookie
import Vuex from 'vuex'
Vue.use(Vuex)
import index from './store/index'
const store=new Vuex.Store({
  modules:{
    index
  }
})
Vue.config.productionTip = false

Vue.directive('zoc', {
  bind(el, binding, vnode) {
    console.log('bind')
  },
  insert(el,binding,vnode){
    console.log('insert')
  },
  update(el,binding,vnode){
    console.log('update')
  },
  componentUpdated(el,binding,vnode,oldNode){
    console.log('componentUpdate')
    console.log('vnodes',vnode)
    console.log('OldVnodes',oldNode)
  },
  unbind(){
    console.log('unbind')
  }
  
});



new Vue({
  el: '#app',
  router,store,
  components: { App },
  template: '<App/>'
})
